package com.bawei.module_login.vm

import com.bawei.http.CommonHttpRetrofitAnnotation
import com.bawei.http.TokenHttpRetrofitAnnotation
import com.bawei.module_login.api.LoginApiServer
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import retrofit2.Retrofit
import javax.inject.Singleton

@Module
@InstallIn(SingletonComponent::class)
object LoginServerModule {
    @Provides
    @Singleton
    fun getplayapiserver(@CommonHttpRetrofitAnnotation retrofit: Retrofit):LoginApiServer{
        return retrofit.create(LoginApiServer::class.java)
    }
}